package com.tech.connect.model;

import com.amap.api.maps.model.LatLng;
import com.ksy.map.LatLngProxy;
import com.tech.connect.api.UserInfo;

import java.io.Serializable;
import java.util.List;

public class ItemFuWu implements Serializable, LatLngProxy {
    public long id;
    public String images;
    public String title;
    public long serviceCategoryId;
    public String property;
    public String introduce;
    public float price;
    public String type;
    public String typeName;
    public String content;
    public int likeCount;
    public int browseTimes;
    public double lng;
    public double lat;
    public String provinceName;
    public String provinceCode;
    public String cityName;
    public String cityCode;
    public String areaName;
    public String areaCode;
    public List<CatOpt> properties;
    public List<ItemCircle> serviceCircleList;
    public List<ItemComment> commentList;
    public String createTime;
    public UserInfo user;
    public float score;
    public CatServer serviceCategoryName;

    //"like": null,
    //     "follow": null,
    public class CatServer implements Serializable {
        public String name;
        public String parentName;
    }

    @Override
    public String toString() {
        return "ItemFuWu{" +
                "id=" + id +
                ", images='" + images + '\'' +
                ", title='" + title + '\'' +
                ", serviceCategoryId=" + serviceCategoryId +
                ", property='" + property + '\'' +
                ", introduce='" + introduce + '\'' +
                ", price='" + price + '\'' +
                ", type='" + type + '\'' +
                ", typeName='" + typeName + '\'' +
                ", content='" + content + '\'' +
                ", likeCount=" + likeCount +
                ", browseTimes=" + browseTimes +
                ", lng=" + lng +
                ", lat=" + lat +
                ", provinceName='" + provinceName + '\'' +
                ", provinceCode='" + provinceCode + '\'' +
                ", cityName='" + cityName + '\'' +
                ", cityCode='" + cityCode + '\'' +
                ", areaName='" + areaName + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", properties=" + properties +
                ", createTime='" + createTime + '\'' +
                ", user=" + user +
                '}';
    }

    @Override
    public LatLng position() {
        return new LatLng(lat, lng);
    }

    @Override
    public Object tag() {
        return this;
    }

}
